import React, { PureComponent } from 'react';
import { Switch, Redirect, Route, Link } from 'react-router-dom';
import { Carousel, Row, Col, List, Avatar, Card } from 'antd';
import Header from '../../components/Header/Header.js'
import Footer from '../../components/Footer/Footer.js'
import CardShow from '../../components/CardShow/CardShow.js'
import Home from './Home.js'
import './shequ.css';

export default class Shequ extends PureComponent {
  render() {
    const data = [
      {
        id: 'asdasda',
        title: 'Ant Design Title 1',
      },
      {
        id: 'asdasda',
        title: 'Ant Design Title 2',
      },
      {
        id: 'asdasda',
        title: 'Ant Design Title 3',
      },
      {
        id: 'asdasda',
        title: 'Ant Design Title 4',
      },
    ];
    return (<div>
      <Header current="shequ" />
      <Switch>
        <Route path='/shequ/home' component={Home} />
        <Route path="/shequ/:id" component={CardShow} />
        <Redirect from="/shequ" to="/shequ/home" />
      </Switch>
      <Footer />
    </div >);
  }
}